package com.ordersystem.mappers;

import com.ordersystem.domain.Purview;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : Purview
 * @description : [描述说明该类的功能]
 * @createTime : [2022/3/25 15:50]
 * @updateUser : asus1020
 * @updateTime : [2022/3/25 15:50]
 * @updateRemark : [描述说明本次修改内容]
 */
@Repository
public interface PurviewMapper {

    List<Purview>findPurviewByLevel(int level);
    List<Purview>findPurviewByLastPid(int lastPid);
    List<Purview>findPurviewByPidAndLevelAndlastPid
            (@Param("lastPid") Integer lastPid,@Param("level") Integer level,@Param("pids") List<Integer> pids);
}
